package com.szxb.facebus.db.entity.bean;

/**
 * 作者：Tangren on 2018-08-29
 * 包名：com.szxb.jcbus.entity.bean
 * 邮箱：996489865@qq.com
 * TODO:一句话描述
 */

public class ResponseMessage {
    private int what = -1;
    private String msg = "unk";
    private boolean isOk = false;
    private Throwable throwable;
    private String type;


    public static final int SUCCESSFUL = 0;
    public static final int SUCCESS = 2;
    public static final int FAIL = 3;
    public static final int WHAT_SCAN = 103;


    /**
     * 0:成功
     * 1:无需更新
     * 2.部分成功
     * 3：失败
     */
    private int status = FAIL;

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getWhat() {
        return what;
    }

    public void setWhat(int what) {
        this.what = what;
    }

    public Throwable getThrowable() {
        return throwable;
    }

    public void setThrowable(Throwable throwable) {
        this.throwable = throwable;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public boolean isOk() {
        return isOk;
    }

    public void setOk(boolean ok) {
        isOk = ok;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
